<!--conf
<sample>
              <product version="2.6" edition="std"/>
                     <modifications>
                            <modified date="100609"/>
                     </modifications>
               </sample>
 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Integration with dhtmlxWindows</title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
	

	<script src="../common/testdata.js"></script>
	
</head>
<style type="text/css" media="screen">
	html, body{
		height:100%;
		padding:0px;
		margin:0px;
	}
</style>
<body onload="doOnLoad();">

<script>
	var dhxWins,pieChart;
	function doOnLoad() {
		dhxWinsParams = {
			image_path: "../../../codebase/imgs/",
			wins: [ {id: "w1", left: 230, top: 230, width: 420, height: 340}]
		};
		dhxWins = new dhtmlXWindows(dhxWinsParams);
		pieChart = dhxWins.window("w1").attachChart({
			view:"pie",
            value:"#sales#",
            color:"#color#",
            pieInnerText:"#sales#",
            legend:{
                width:75,
                align:"right",
                valign:"middle",
                template:"#month#"
            }
		});
		
		pieChart.parse(month_dataset,"json");
	};
</script>
</body>
</html>